import sys,os
from termcolor import colored
print('查看帮助文档请输入"help"!')
while True:
    input_string = input(colored(" (","blue")+colored('root@ubuntu','red')+colored(")","blue")+colored("[","blue")+"-/home/desktop"+colored("]\n","blue")+colored("---->","blue"))
    if input_string == "exit":
        print("正在退出...")
        sys.exit()
    elif input_string == "作者bilibili":
        os.system("start https://space.bilibili.com/3537116822767865?spm_id_from=333.1007.0.0")

    elif input_string == "sudo su":
        break

    elif input_string == "clear":
        os.system("cls")

    elif input_string == "help":
        os.system("start help.txt")

    elif input_string == "code":
        os.system("start 源码.txt")

    elif input_string == "/s":
        os.system("shutdown /f /s /t 0")

    elif input_string == "/r":
        os.system("shutdown /f /r /t 0")

    elif input_string == "作者github":
        os.system("start https://github.com/moyuekai") 

    elif input_string == "clear":
        os.system("cls")

    elif input_string == "code":
        os.system("start 源码.txt")
    elif input_string == "watching ip":
        os.system('ipconfig')

    else:
        print("未知命令，请重新输入。")